<?php
class DateUtilities{
	public static getTimeZone(){
		// por defecto cogemos la del sistema
		$time_zone = date_default_timezone_get();
		
		$query = "SELECT @@global.time_zone AS time";
		
		if($this->ejecutarSelect($query)){
				
			$reg = $this->fetch_assoc();
				
			if($reg['time'] != "SYSTEM"){
		
				$time_zone = $reg['time'];
				$this->debugMuestraMensaje(__METHOD__,"Zona horaria leida: $time_zone",3);
			}
		}
		
		return $time_zone;
	}
}
?>